package com.atguigu.day11.enumtest;

public class Test03 {
    public static void main(String[] args) {
        Payment[] values = Payment.values();
        for (int i = 0; i < values.length; i++) {
            values[i].pay();
        }
    }
}

